package com.bll.impl.activityAction;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bean.ActivityBean;
import com.bll.Action;
import com.dao.ActivityDao;
import com.dao.Page;

public class ShowfActivityAction implements Action{
	public String execute(HttpServletRequest request,HttpServletResponse response) {
		
		int userId=Integer.parseInt(request.getSession().getAttribute("userId").toString());
		String lujing=request.getParameter("lujing");
		ActivityDao dao=new ActivityDao();
		List<ActivityBean> beans=dao.SelectAll(userId);
		request.setAttribute("beans", beans);
		
		return lujing;
	}
}
